package com.example.myerp.service;

import com.example.myerp.pojo.*;


import com.mycloud.api.pojo.ApiGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@SuppressWarnings("all")
@FeignClient("myerpdesign")
public interface DesignService {
    @RequestMapping(value = "/design/proclassOne/insertOne", method = RequestMethod.POST)
    public Integer getInsertOneCslassifyByProName(@RequestParam(value = "proName") String proName);

    @RequestMapping("/design/procalssTwo/TwoByProName")
    public Integer getInsertProcalssTwoByProName(@RequestBody ProcalssTwo procalssTwo);

    @RequestMapping("/design/proclassThree/threeadd")
    public @ResponseBody
    Integer getInsertProclassThreeByProName(@RequestBody ProclassThree proclassThree);


    @RequestMapping("/design/myfign/makeHousePage")
        ///design/myfign
    PageMyself<MakeHouse> makeHousePagefindByPager(@RequestParam(value = "pageSize") Integer pageSize, @RequestParam(value = "pageNum") Integer pageNum);

    @RequestMapping("/design/myfign/updateInfoRepby")
    public void updateInfoRepby(@RequestParam("product_id") Integer product_id);


    @RequestMapping("/design/myfign/goodsfindByPager")
    public PageMyself<ApiGoods> goodsfindByPager(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize);

    @RequestMapping("/design/myfign/goodsfindByPagers")
    public PageMyself<ApiGoods> goodsfindByPagers(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize);

    @RequestMapping("/design/myfign/fanGoods")
    public List<ApiGoods> fanGoods(@RequestParam("productId") List<Integer> productId);
}
